package work;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class PrintWriterDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintWriter pw=new PrintWriter("fos.txt");
        pw.write("sfsfs");
        pw.println("printWriter");
        pw.println("中文");
        pw.close();
    }
}
